package com.qdu.service.impl;

import com.qdu.dao.impl.ManagementDaoImpl;
import com.qdu.entity.Management;
import com.qdu.service.ManagementService;
import java.util.List;

/**
 *
 * @author Lenovo
 */
public class ManagementServiceImpl implements ManagementService{

    ManagementDaoImpl managementimpl=new ManagementDaoImpl();
    
    @Override
    public List<Management> getAllManagements() {
        return managementimpl.selectAll();
    }

    @Override
    public Management getOneManagementByName(String name) {
        return managementimpl.selectOneByName(name);
    }

    @Override
    public int UpdatePassword(String name, String password) {
        return managementimpl.updatePwd(name, password);
    }
    
    
}
